/*
Author luck-Yik
Email 18691589738@163.com
*/

$defaultColor: #1D5792;
$defaultActiveColor: #701618;
$yellowColor: #E29B27;
$fontColor: #775028;

$vw_fontsize: 192;
$vw_design: 1920;

$width: 100%;

$pageWidth: 1200px;

@mixin minWidth() {
    min-width: $pageWidth;
}

@mixin widthHeight($width,$height:null) {
    width: $width;
    @if $height {
        height: $height;
    } @else {
        height: $width;
    }
}

@mixin lineHeight($height,$lineHeight:null) {
    height: $height;
    @if $lineHeight {
        line-height: $lineHeight;
    } @else {
        line-height: $height;
    }
}

@mixin position($position:absolute) {
    position: $position;
}

@mixin trbl($top:0,$right:0,$bottom:0,$left:0,$zIndex:9) {
    top: $top;
    right: $right;
    bottom: $bottom;
    left: $left;
    z-index: $zIndex;
}

@mixin bgColor($color:white) {
    background-color: $color;
}

@mixin bgImg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

@mixin color($color:#262626) {
    color: $color;
}

@mixin fontSize($size:14px) {
    font-size: $size;
}

@mixin visibleFont() {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

@mixin visibleFontLine($line:2) {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $line;
}

@mixin lightFont() {
    font-family: 微软雅黑 light, serif;
    font-weight: bold;
}

@mixin regularFont() {
    font-family: 微软雅黑 Regular, serif;
}

@mixin displayFlex() {
    display: flex;
    justify-content: center;
    align-items: center;
}

@mixin scrollBar($size:4px,$scrollColor:$defaultColor) {
    /*浏览器滚动条样式*/
    scrollbar-3dlight-color: #999;
    scrollbar-darkshadow-color: #999;
    scrollbar-highlight-color: #fff;
    scrollbar-shadow-color: #eee;
    scrollbar-arrow-color: #000;
    scrollbar-face-color: rgba(50, 133, 255, 0.5);
    scrollbar-track-color: #eee;
    scrollbar-base-color: #ddd;

    &::-webkit-scrollbar {
        width: $size;
        height: $size;
    }

    &::-webkit-scrollbar-track {
        border-radius: 0;
        //background-color: #E5E5E5;
        @include bgColor(transparent);
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 0;
        min-height: 20px;
        background-clip: content-box;
        @include bgColor($scrollColor);
    }

    &::-webkit-scrollbar-corner {
        background: transparent;
    }
}
@function px2rem($px) {
    //@return $px+px;
    @return ($px/100)+rem;
}

@font-face {
    font-family: 'fzsh';
    src: url("../fonts/fzsh.ttf");
}

@mixin fZSH() {
    font-family: 'fzsh', sans-serif;
}